package com.javasm.boot.oauth2.entity;

/**
 * Author：MoDebing
 * Version：1.0
 * Date：2022-12-13-12:25
 * Description:
 */
public enum MyAuthentication {

    INSERT("normal:insert","普通用户：插入权限"),
    UPDATE("normal:update","普通用户：更新权限"),
    DELETE("normal:delete","普通用户：删除权限"),
    QUERY("normal:query","普通用户：查询权限"),

    VIP_INSERT("vip:insert","会员：插入权限"),
    VIP_UPDATE("vip:update","会员：更新权限"),
    VIP_DELETE("vip:delete","会员：删除权限"),
    VIP_QUERY("vip:query","会员：查询权限");


    MyAuthentication(String permission,String desc) {
        this.desc = desc;
        this.permission = permission;
    }

    private String desc;

    private String permission;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}
